﻿using Marmat.Foundation;
using Marmat.Template.WinForm;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 测试项目
{
    public class MenuForm_1 : MainMultilevelForm
    {
        public MenuForm_1(IMeunManagement meunService) : base(meunService)
        {
            this.Logo = Properties.Resources.logo__1_;
            var btn= new System.Windows.Forms.ToolStripMenuItem { Name = "d", Text = "测试按钮" };
            btn.Click += Btn_Click;
            this.SettingRegisterItems(btn);
            this.BackgroundImage = Properties.Resources.背景;
        }

        private void Btn_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Test");
        }


        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MenuForm_1));
            this.SuspendLayout();
            // 
            // MenuForm_1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.BackgroundImage = global::测试项目.Properties.Resources.背景;
            this.ClientSize = new System.Drawing.Size(800, 450);
            this.Location = new System.Drawing.Point(0, 0);
            this.Name = "MenuForm_1";
            this.SkinBackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.SkinBackgroundImage")));
            this.Text = " ";
            this.ResumeLayout(false);
            this.PerformLayout();

        }
    }
}
